﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="EZCRS.HCMS.Web.manage.baseinfo.service" Codebehind="service.aspx.cs" %>

<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register assembly="Book38.Net.CustomControl" namespace="Book38.Net.CustomControl" tagprefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <uc2:titlepage id="Titlepage1" runat="server" inittitle="<%$ Resources:Site, Titleservice %>"></uc2:titlepage>
        
        <table class="main-table"  cellpadding="1" cellspacing="1">
            <tr class="line-even">
                <td width="20%">
                    &nbsp;</td>
                <td  style="text-align: left;">
                    <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Site, LabLanguage %>"></asp:Label>：<asp:DropDownList ID="ddllanguage" runat="server" Width="80px">
                        
                    </asp:DropDownList>
                    
                    &nbsp;<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Site, Titleservice %>"></asp:Label>：<cc2:WebTextBox ID="searchkey" runat="server" CssClass="text-line"></cc2:WebTextBox>&nbsp;<asp:Button  ID="BtnSearch"  runat="server" CssClass="bttn" OnClientClick="javascript:getall();return false;" Text="<%$ Resources:Site, ButtonSearch %>" />
                    </td>
                
            </tr>
            
            </table>
        <br />
        <div id="loadinfo"></div>
   
    </form> 
</body>
</html>
<script language="javascript" type="text/javascript">
function getall()
{
  var ltype=$F("ddllanguage").value;
  var nkey=$F("searchkey").value;
  EZCRS.HCMS.myajax.AjaxHotelInfo.gatfacilitybase(ltype,nkey,function(resp){$F("loadinfo").innerHTML=resp.value;});
}

getall();

function save(obj,cellstart,cellend)
    {
      var ltype=$F("ddllanguage").value;
      var crow=obj.parentElement.parentElement;
      var sid=crow.cells[0].innerHTML;
      var sname=crow.cells[1].childNodes[0].value;
      var jslatitude,jslongitude;
      
      EZCRS.HCMS.myajax.AjaxHotelInfo.updatefacility(sid,sname,function(resp){if(resp.value=="1"){rowreset(obj,cellstart,cellend,'');}else{alert('<%= Resources.Site.ScriptDelFalse %>');}});
    }
    

function del(sid)
{
   if(confirm("<%= Resources.Site.ScriptConfirm %>"))
    EZCRS.HCMS.myajax.AjaxHotelInfo.delfacility(sid,function(resp){if(resp.value=="1"){getall();}else{alert('<%= Resources.Site.ScriptDelFalse %>');}});
}
</script>
